package com.zy.je.common.mybatis.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author zy
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MybatisBetween {

    boolean value() default true;

    Position position() default Position.NULL;

    String startValueColumn() default "";

    String endValueColumn() default "";

    public static enum Position {
        NULL,
        START,
        END,
        START_AND_END;
    }
}
